<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../js/vue.js"></script>
</head>
<body>

    <div id="app">


        =========>
       我是一位{{major}}程序员
        {{[0,1,2,3,4][1]}}<br>
        {{{name:'xiaoming',age:20}.name}}
        {{sayHi()}}
    </div>

</body>
<script>
    new Vue({
        el:"#app",
        data:{
            major:"java"
        },
        methods:{
          sayHi:function () {
            alert("hello vue!")
          }
        }
    })
</script>
</html>